﻿<%@ Page Title="个人信息" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Profile.aspx.cs" Inherits="RegexLib.Web.Views.Member.Profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<% UserInfo user = (UserInfo)ViewData.Model; %>
<% UserInfo curuser = RxMembership.GetCurrentUser(); %>
<div class="box">
<div class="bt"><%= HttpUtility.HtmlEncode(user.Nickname) %>的个人信息</div>
<div class="bc">
	<table>
		<tr><td>昵称：</td><td><%= HttpUtility.HtmlEncode(user.Nickname) %></td></tr>
		<tr><td>注册时间：</td><td><%= user.RegisterTime.ToString("yyyy-MM-dd hh:mm:ss") %></td></tr>
		<tr><td>上次登录：</td><td><%= user.LastLoginTime.ToString("yyyy-MM-dd hh:mm:ss") %></td></tr>
	</table>
<% if (curuser != null && curuser.UserId == user.UserId) %>
<% { %>
	<p class="cmd-r"><a href='<%= RxUrl.GetEditProfileUrl(user.AccessKey) %>'>修改信息</a></p>
<% } %>
</div>
</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
</asp:Content>
